<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>share1</title>
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <script src="./js/nativeShare.js"></script>
    <link rel="stylesheet" href="./css/nativeShare.css"/>
</head>
<body>
<div id="nativeShare"></div>

<script>
    var config = {
        url:'http://www.baidu.com',
        title:'测试分享',
        desc:'测试分享到微信',
        img:'http://www.wangjunfeng.com/img/face.jpg',
        img_title:'分享',
        from:'微有趣'
    };
    var share_obj = new nativeShare('nativeShare',config);
</script>
</body>
</html>